package com.digital.smartgrow.vo.dict;

import com.digital.smartgrow.entity.sysinfo.Dictionary;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

import java.util.List;

/**
 * Created by SunYuechao on 2022/7/11 下午9:23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="dict", description="字典集合")
public class DictVo implements Serializable {



    public DictVo(Dictionary dict, List<DictItemVO> items) {
        this.id = dict.getId();
        this.dictNumber = dict.getDictNumber();
        this.dictName = dict.getDictName();
        this.issys = dict.getIssys();
        this.items = items;
        this.status = dict.getStatus();
    }

   // @ApiModelProperty(value = "主键")
    private Integer id;
    @ApiModelProperty(value = "字典ID")
    private String dictNumber;
    @ApiModelProperty(value = "字典名称")
    private String dictName;
    @ApiModelProperty(value = "字典类型,0:自主添加，1：系统默认")
    private Integer issys;
    @ApiModelProperty(value = "字典值")
    private List<DictItemVO> items;
    @ApiModelProperty(value = "状态，0：禁用，1：启用")
    private Integer status;

}
